package com.zxh.dao;

import com.zxh.pojo.Account;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface AccountDao {

    @Select("select *from Account")

    public List<Account> findAll();

    @Update("update Account set money=${money} where id=${id}")
    void updateMoney(@Param("id") int id, @Param("money") double money);
}
